package cn.service.feign;

import cn.service.entiy.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("Goods")
public interface GoodsFeign {


    @PostMapping("api/goods/add")
    Boolean addGoods(Goods goods);

    @PostMapping("api/goods/getGoods")
    Goods getGoodsById(Integer goodsId);
}
